<div ng-controller="userPersonalController">
<div class="modal fade personal-add" tabindex="-1" role="dialog" data-backdrop="static" aria-labelledby="myModalLabel" aria-hidden="true" id="update">
     <div class="modal-dialog modal-lg" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title" id="myModalLabel">个人用户-修改</h4></div>
                    <div class="modal-body"> 
                	<form name="userpersonaledit_form" novalidate>
                		<div class="col-xs-12 col-sm-6">
	                        <div class="form-group">
		                            <label class="col-xs-12 col-sm-3 control-label text-right" for="dhName">用户名：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <input type="text"
		                                	name="userName"
		                                	ng-minlength="2" 
		                                	ng-maxlength="32"
		                                	autocomplete="off" 
		                                	class="form-control" 
		                                	ng-model="edit_userName"
		                                	 disabled/>
			 							<!-- <p class="details-p">{{edit_userName}}</p>-->
		                            </div>       
	                        </div>
	                         <div class="form-group">
		                            <label class="col-xs-12 col-sm-3 control-label text-right">手机：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <input type="text" 
		                                	name="mobile"
		                                	ng-minlength="2" 
		                                	ng-maxlength="11"
		                                	autocomplete="off" 
		                                	class="form-control" 
		                                	ng-model="edit_userInfos_mobile "
		                                	ng-pattern="/^1[3,5,8]\d{9}$/"
		                                	required />
		                                <label class="red required">*</label>
		                                 <div class="error" ng-show="userpersonaledit_form.mobile.$dirty && userpersonaledit_form.mobile.$invalid">
										    <small class="error" ng-show="userpersonaledit_form.mobile.$error.pattern">请输入正确的手机号码</small>
										    <small class="error" ng-show="userpersonaledit_form.mobile.$error.required">手机号码不能为空</small>
										    <small class="error" ng-show="userpersonaledit_form.mobile.$error.minlength ">手机号码长度在1-11之间</small>
										    <small class="error" ng-show="userpersonaledit_form.mobile.$error.maxlength">手机号码长度在1-11之间</small>
			 							 </div>
		                            </div>       
	                        </div>
	                        <div class="form-group">
		                            <label class="col-xs-12 col-sm-3 control-label text-right" for="dhName">昵称：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <input type="text" 
		                                	name="displayName"
		                                	ng-minlength="2" 
		                                	ng-maxlength="32"
		                                	autocomplete="off" 
		                                	class="form-control" 
		                                	ng-model="edit_displayName"
		                                	required />
		                                <label class="red required">*</label>
		                                 <div class="error" ng-show="userpersonaledit_form.displayName.$dirty && userpersonaledit_form.displayName.$invalid">
										    <small class="error" ng-show="userpersonaledit_form.displayName.$error.required">请输入昵称</small>
										    <small class="error" ng-show="userpersonaledit_form.displayName.$error.minlength ">昵称长度在1-32之间</small>
										    <small class="error" ng-show="userpersonaledit_form.displayName.$error.maxlength">昵称长度在1-32之间</small>
			 							 </div>
		                            </div>       
	                        </div>
	                        <div class="form-group">
		                            <label class="col-xs-12 col-sm-3 control-label text-right" >邮箱：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <input type="email" 
		                                	name="email"
		                                	autocomplete="off" 
		                                	class="form-control" 
		                                	ng-model="edit_email"
		                                	required />
		                                <label class="red required">*</label>
		                                 <div class="error" ng-show="userpersonaledit_form.email.$dirty && userpersonaledit_form.email.$invalid">
										    <small class="error" ng-show="userpersonaledit_form.email.$error.required">请输入邮箱</small>
										    <small class="error" ng-show="userpersonaledit_form.email.$error.email">请输入正确的邮箱</small>
			 							 </div>
		                            </div>       
	                        </div>
							<div class="form-group">
		                            <label class="col-xs-12 col-sm-3 control-label text-right" for="dhName">注册来源：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <input type="text" 
		                                	name="registerSource"
		                                	autocomplete="off" 
		                                	class="form-control" 
		                                	ng-model="edit_registerSource"
		                                	required />
		                                <label class="red required">*</label>
		                                 <div class="error" ng-show="userpersonaledit_form.registerSource.$dirty && userpersonaledit_form.registerSource.$invalid">
										    <small class="error" ng-show="userpersonaledit_form.registerSource.$error.required">请输入注册来源</small>
			 							 </div>
		                            </div>       
	                        </div>
	                         <div class="form-group">
		                            <label class="col-xs-12 col-sm-3 control-label text-right" >性别：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <select name="sex"  ng-model="edit_userInfos_sex" ng-options="o.id as o.name for o in user_sexList"  required>
		                                	<option  value="" >请选择</option>
											<option  value="0">男</option>
											<option  value="1">女</option>
										</select>
										<div class="error" ng-show="userpersonaledit_form.sex.$dirty && userpersonaledit_form.sex.$invalid">
										    <small class="error" ng-show="userpersonaledit_form.sex.$error.required">请选择性别</small>
			 							 </div>
		                            </div>       
	                        </div>
	                        <div class="form-group">
		                            <label class="col-xs-12 col-sm-3 control-label text-right" for="dhName">头像：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <input type="file" 
		                                	name="portrait"
		                                	autocomplete="off" 
		                                	class="form-control" 
		                                	ng-model="edit_portrait"/>
		                                <label class="red required">*</label>
		                           
		                            </div>       
	                        </div>
	                       
	                        <div class="form-group">
		                            <label class="col-xs-12 col-sm-3 control-label text-right" >用户状态：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <select  ng-model="edit_status" ng-options="o.id as o.name for o in user_statusList">
		                                	<option  value="" >请选择</option>
											<option  value="0">禁用</option>
											<option  value="1">启用</option>
										</select>

		                            </div>       
	                        </div>
	                        <div class="form-group">
		                            <label class="col-xs-12 col-sm-3 control-label text-right" >邮箱激活状态：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <select  ng-model="edit_isActivate" ng-options="o.id as o.name for o in user_isActivateList">
		                                	<option  value="" >请选择</option>
											<option  value="0">未激活</option>
											<option  value="1">激活</option>
										</select>

		                            </div>       
	                        </div>
	                        <div class="form-group">
		                            <label class="col-xs-12 col-sm-3 control-label text-right" >实名认证状态：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <select  ng-model="edit_isAutonym" ng-options="o.id as o.name for o in user_isAutonymList">
		                                	<option  value="" >请选择</option>
											<option  value="0">未认证</option>
											<option  value="1">认证</option>
										</select>

		                            </div>       
	                        </div>
	                         </div>
	                         <div class="col-xs-12 col-sm-6">
	                        <div class="form-group">
		                            <label class="col-xs-12 col-sm-3 control-label text-right">真实姓名：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <input type="text" 
		                                	name="real_name"
		                                	ng-minlength="2" 
		                                	ng-maxlength="256"
		                                	autocomplete="off" 
		                                	class="form-control" 
		                                	ng-model="edit_userInfos_realName"
		                                	required />
		                                <label class="red required">*</label>
		                                 <div class="error" ng-show="userpersonaledit_form.real_name.$dirty && userpersonaledit_form.real_name.$invalid">
										    <small class="error" ng-show="userpersonaledit_form.real_name.$error.required">请输入真实姓名</small>
										    <small class="error" ng-show="userpersonaledit_form.real_name.$error.minlength ">真实姓名长度在1-256之间</small>
										    <small class="error" ng-show="userpersonaledit_form.real_name.$error.maxlength">真实姓名长度在1-256之间</small>
			 							 </div>
		                            </div>       
	                        </div>
	                        <div class="form-group">
		                            <label class="col-xs-12 col-sm-3 control-label text-right">身份证：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <input type="text" 
		                                	name="identity_card"
		                                	ng-minlength="1" 
		                                	ng-maxlength="32"
		                                	autocomplete="off" 
		                                	class="form-control" 
		                                	ng-model="edit_userInfos_identityCard"
		                                	ng-pattern="/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/"
		                                	required />
		                                <label class="red required">*</label>
		                                 <div class="error" ng-show="userpersonaledit_form.identity_card.$dirty && userpersonaledit_form.identity_card.$invalid">
										    <small class="error" ng-show="userpersonaledit_form.identity_card.$error.pattern">身份证格式不对</small>
										    <small class="error" ng-show="userpersonaledit_form.identity_card.$error.required">身份证不能为空</small>
										    <small class="error" ng-show="userpersonaledit_form.identity_card.$error.minlength ">身份证长度在1-32之间</small>
										    <small class="error" ng-show="userpersonaledit_form.identity_card.$error.maxlength">身份证长度在1-32之间</small>
			 							 </div>
		                            </div>       
	                        </div>
	                        
	                         <div class="form-group">
		                            <label class="col-xs-12 col-sm-3 control-label text-right">电话：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <input type="text" name="phone"autocomplete="off" class="form-control" ng-model="edit_userInfos_phone"/>
		                            </div>       
	                        </div>
	                         <div class="form-group">
		                            <label class="col-xs-12 col-sm-3 control-label text-right" for="dhName">用户文件夹：</label>
		                            <div class="col-xs-12 col-sm-9">
		                                <input type="text" 
		                                	name="userFolder"
		                                	ng-minlength="2" 
		                                	ng-maxlength="32"
		                                	autocomplete="off" 
		                                	class="form-control" 
		                                	ng-model="edit_userFolder"
		                                	required />
		                                <label class="red required">*</label>
		                                 <div class="error" ng-show="userpersonaledit_form.userFolder.$dirty && userpersonaledit_form.userFolder.$invalid">
										    <small class="error" ng-show="userpersonaledit_form.userFolder.$error.required">请输入用户文件夹</small>
										    <small class="error" ng-show="userpersonaledit_form.userFolder.$error.minlength ">用户文件夹长度在1-32之间</small>
										    <small class="error" ng-show="userpersonaledit_form.userFolder.$error.maxlength">用户文件夹长度在1-32之间</small>
			 							 </div>
		                            </div>       
	                        </div>
	                       
	                        
	                        <div class="form-group">
		                            <label class="col-xs-12 col-sm-3 control-label text-right">生日：</label>
		                            <div class="col-xs-12 col-sm-9">  
		                                <!--<input type="text"  autocomplete="off"  ng-model="edit_userInfos_birthday  "/>-->
		                                <p class="form-control"  >{{edit_userInfos_birthday | date:'yyyy-MM-dd'}}</p>
		                            </div>       
	                        </div>
	                        <div class="form-group">
		                        <label class="col-xs-12 col-sm-3 control-label text-right" >城市：</label>
		                        <div class="col-xs-12 col-sm-9">
		                            <input type="text"  autocomplete="off" class="form-control" ng-model="edit_userInfos_city"/>
		                        </div>       
	                        </div>
	                        <div class="form-group">
		                        <label class="col-xs-12 col-sm-3 control-label text-right" >地址：</label>
		                        <div class="col-xs-12 col-sm-9">
		                            <input type="text"  autocomplete="off" class="form-control" ng-model="edit_userInfos_address"/>
		                        </div>       
	                        </div>
	                        <div class="form-group">
		                        <label class="col-xs-12 col-sm-3 control-label text-right" >qq号：</label>
		                        <div class="col-xs-12 col-sm-9">
		                            <input type="text"  autocomplete="off" class="form-control" ng-model="edit_userInfos_qq"/>
		                        </div>       
	                        </div>
	                        <div class="form-group">
		                        <label class="col-xs-12 col-sm-3 control-label text-right" >邮编：</label>
		                        <div class="col-xs-12 col-sm-9">
		                            <input type="text"  autocomplete="off" class="form-control" ng-model="edit_userInfos_postCode"/>
		                        </div>       
	                        </div>
	                        <div class="form-group">
		                        <label class="col-xs-12 col-sm-3 control-label text-right" >学校：</label>
		                        <div class="col-xs-12 col-sm-9">
		                            <input type="text"  autocomplete="off" class="form-control" ng-model="edit_userInfos_school "/>
		                        </div>       
	                        </div>
	                        </div>
  						</form>
  						
               	 		<div class="col-sm-12">
  							<div class="col-sm-12">
		  						<div class="modal-footer">
                    					<button type="button" class="btn btn-primary" ng-disabled="userpersonaledit_form.$invalid" ng-click="confirmEdit($event)">修改</button>
            					</div>
                            </div>
                    	</div>
               	</div> 	
            </div>
        </div>
</div>    
</div>
<!-- 修改 END -->